package com.ruoyi.wq.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 活动报名对象 wq_activity_user
 * 
 * @author ruoyi
 * @date 2023-08-12
 */
public class WqActivityUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.UUID)
    private String id;

    /** 活动ID */
    @Excel(name = "活动ID")
    private String activityId;

    /** 支付订单ID */
    @Excel(name = "支付订单ID")
    private String payOrderId;

    /** 支付锁定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付锁定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 参加人ID */
    @Excel(name = "参加人ID")
    private Long userId;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setActivityId(String activityId) 
    {
        this.activityId = activityId;
    }

    public String getActivityId() 
    {
        return activityId;
    }
    public void setPayOrderId(String payOrderId) 
    {
        this.payOrderId = payOrderId;
    }

    public String getPayOrderId() 
    {
        return payOrderId;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityId", getActivityId())
            .append("payOrderId", getPayOrderId())
            .append("payTime", getPayTime())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
